using GraphQL.Types;
using GraphQLDemo.Domain.CompanyProjectAttachments;

namespace GraphQLDemo.Api.GroupTypes;

public class CompanyProjectAttachmentGraphType : ObjectGraphType<CompanyProjectAttachment>
{
    public CompanyProjectAttachmentGraphType()
    {
        Name = "CompanyProjectAttachment";
        Description = "Company Project Attachment test ... ";

        Field(f => f.Id);
        Field(f => f.Name);
        Field(f => f.Type);
        Field<StringGraphType>("address")
            .Resolve(context =>
            {
                return "changsha";
            });
    }
}